#define  _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
#include<math.h>
int main()
{
	int a = 0;
	
	double  y = 0;
	int x = 0;
	scanf("%d %d", &a, &x);
	if (a == 6)
		y = 1 / x;
	else if (a > 6)
		y = 1 / (x^2);
	else
		y = sqrt(x ^ 2 + 1);

	printf("y=%.2f", y);


	




	return 0;

}